<?php

namespace App\Http\Controllers\Demo;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use Mail;

class ForgetController extends Controller
{
    public function forget()
    {
    	return view('demo.inputEmail');
    }

    public function sendEmail(Request $request)
    {
    	// dd($request -> all());
    	Mail::raw('你好', function($message)
    	{
    		$message -> subject('标题');
    		$message -> to('1158125340@qq.com');
    	});
    }
}
